package 小乐乐改数字;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] s = in.next().toCharArray();
        String res = "";
        for (int i = 0; i < s.length; i++) {
            if ((s[i] - '0') % 2 == 0) {
                res+='0';
            } else {
                res+='1';
            }
        }
        System.out.println(Integer.parseInt(res));
    }
}
